package com.jt.controller;

import com.jt.service.ItemService;
import com.jt.vo.EasyUiTable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/item")
public class ItemController {
	
	@Autowired
	private ItemService itemService;

	@RequestMapping("/query")
	public EasyUiTable doJson(Integer page,Integer rows){

		return itemService.findItemBypage(page,rows);
	}
	@RequestMapping("/query01")
	public EasyUiTable doPage(Integer page,Integer rows){
		return itemService.findItemByPageMyabtis(page, rows);
	}
	
}
